/**
 * Created by ZHOUSH on 12/25/2015.
 */
var parser = require('./SqlParser').parser;
var Promise = require('promise');
var pread = Promise.denodeify(require('fs').readFile);
pread(__dirname + "/test.sql", 'utf-8').then(function (data) {
    return parser.parse(data);
}).then(function (data) {
    console.log(data);
}, function(err) {
    console.log(err.stack);
});